package com.imooc.enums;

import lombok.Getter;

/**
 * 商品状态
 * Created by 廖师兄
 * 2017-05-09 17:33
 *
 * @author 廖师兄
 */
@Getter
public enum ProductStatusEnum implements CodeEnum {

    /**
     * 在架状态
     */
    UP(0, "在架"),

    /**
     * 下架状态
     */
    DOWN(1, "下架");

    /**
     * 状态码
     */
    private final Integer code;

    /**
     * 提示信息
     */
    private final String message;

    ProductStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

}
